
export LINK_DIR				=$(TOP_DIR)/build
export DAEMON_DIR			=$(TOP_DIR)/daemon
export SHADOW_DIR			=$(TOP_DIR)/shadow
export APP_DIR				=$(TOP_DIR)/app
export AUTOTEST_DIR			=$(TOP_DIR)/autotest
export TOOL_DIR				=$(TOP_DIR)/tool
export PC_TOOL_DIR			=$(TOP_DIR)/pc_tool
export PUBLIC_DIR			=$(TOP_DIR)/public/
export SLAVE_CHIP_DIR		=$(TOP_DIR)/slave_chip/
export SLAVE_OUTPUT_DIR		=$(SLAVE_CHIP_DIR)/output/

export FIRMWARE_DIR			=$(TOP_DIR)/firmware
export KERNEL_DIR			=$(FIRMWARE_DIR)/kernel/
export KERNEL_SRC_DIR		=$(KERNEL_DIR)/source_link
export KERNEL_DEPEND		=$(KERNEL_SRC_DIR)/vmlinux

export BUSYBOX_DIR			=$(FIRMWARE_DIR)/busybox/
export BUSYBOX_SRC_DIR		=$(BUSYBOX_DIR)/source_link

export MINI_UBOOT_DIR		=$(FIRMWARE_DIR)/mini_uboot
export MINI_UBOOT_SRC_DIR	=$(FIRMWARE_DIR)/mini_uboot/source/
export MINI_UBOOT_DEPEND	=$(FIRMWARE_DIR)/mini_uboot/mini_uboot.bin

export UBOOT_DIR			=$(FIRMWARE_DIR)/uboot
export UBOOT_SRC_DIR		=$(FIRMWARE_DIR)/uboot/source/
export UBOOT_DEPEND			=$(FIRMWARE_DIR)/uboot/uboot.bin

export DRIVER_DIR			=$(TOP_DIR)/exdrv/
export DRIVER_DEPEND		=$(wildcard $(DRIVER_DIR)/*.ko)

# All Auto Test binaries/config files goes to this directory
export ATF_BIN_DIR			=$(TOP_DIR)/atf/binary
export ATF_CFG_DIR			=$(TOP_DIR)/atf/config

export OUTPUT_DIR			=$(TOP_DIR)/output/
export OUTPUT_ROOT_FS		=$(OUTPUT_DIR)/root
export OUTPUT_USR_FS		=$(OUTPUT_DIR)/usr
export OUTPUT_WEB_FS		=$(OUTPUT_DIR)/web
export OUTPUT_YDT_BOX_FS	=$(OUTPUT_DIR)/ydt_box
export OUTPUT_SYS_FS		=$(OUTPUT_DIR)/sys

export OUTPUT_USR_LIB		=$(OUTPUT_USR_FS)/lib
export OUTPUT_USR_BIN		=$(OUTPUT_USR_FS)/bin
export OUTPUT_USR_SBIN		=$(OUTPUT_USR_FS)/sbin
export OUTPUT_USR_ETC		=$(OUTPUT_USR_FS)/etc

export OUTPUT_ROOT_LIB		=$(OUTPUT_ROOT_FS)/lib
export OUTPUT_ROOT_BIN		=$(OUTPUT_ROOT_FS)/bin
export OUTPUT_ROOT_SBIN		=$(OUTPUT_ROOT_FS)/sbin
export OUTPUT_ROOT_ETC		=$(OUTPUT_ROOT_FS)/etc

# hb0 as hb1's BACKUP
export HB_BK_DIR_NAME		=hb0
export OUTPUT_HB_BK			=$(OUTPUT_DIR)/$(HB_BK_DIR_NAME)/
export OUTPUT_HB_BK_SLV		=$(OUTPUT_DIR)/$(HB_BK_DIR_NAME)/slave/

export CFG_DIR_NAME			=hb1
export OUTPUT_CFG			=$(OUTPUT_DIR)/$(CFG_DIR_NAME)/
export OUTPUT_CFG_CONFIG	=$(OUTPUT_CFG)/config/
export OUTPUT_CFG_LOGO		=$(OUTPUT_CFG)/logo/

export BAK_DIR_NAME			=hb2

export COMP_DIR				=$(TOP_DIR)/comp
export HBLIB_PATH			=$(TOP_DIR)/lib
export COMP_DEPEND			=$(wildcard $(HBLIB_PATH)/*.a)

export HBINC_PATH			=$(TOP_DIR)/inc
export INC_DEPEND			=$(wildcard $(HBINC_PATH)/*.h)

export DEPEND_FILE_NAME 		= dep.mk.rej
export MAKE_LOG_FILE			= make_log.txt
export SUB_DIR_MK				= $(SCRIPTS_DIR)/SubDir.mk
export AUTO_DEP_MK				= $(SCRIPTS_DIR)/AutoDep.mk
export BIN_AUTO_DEP_MK			= $(SCRIPTS_DIR)/BinAutoDep.mk
export TEST_CASE_MK				= $(SCRIPTS_DIR)/TestCase.mk
export BUILD_MK					= $(SCRIPTS_DIR)/BUILD.mk
export BUILD_SH					= $(SCRIPTS_DIR)/BUILD.sh
export BUILD_PY					= $(SCRIPTS_DIR)/Build.py
export DOWNLOAD_PY				= $(SCRIPTS_DIR)/DownloadLib.py
export FIND_SDK_SH				= $(SCRIPTS_DIR)/FindSDK.sh
export COMMAND_DEF_MK			= $(SCRIPTS_DIR)/CommandDef.mk
export BOARD_CONFIG_MK			= $(SCRIPTS_DIR)/BoardConfig.mk
export SLV_BOARD_CFG_MK			= $(SCRIPTS_DIR)/SlaveBoardConfig.mk
export TOOLCHAIN_CFG_MK			= $(SCRIPTS_DIR)/ToolchainCfg.mk
export SDK_PATH_MK				= $(SCRIPTS_DIR)/SDKPath.mk
export FS_AUTO_DEP_MK			= $(SCRIPTS_DIR)/FsAutoDep.mk
export DRV_TMPL_MK				= $(SCRIPTS_DIR)/DrvTmpl.mk
export COPY_HIS_DRV_MK			= $(SCRIPTS_DIR)/CopyHisDriver.mk
export CHK_SVN_PERM_SH			= $(SCRIPTS_DIR)/CheckSvnPerms.sh
export SETUP_SLV_SRC_SH			= $(SCRIPTS_DIR)/SetupSlvSrcEnv.sh
export SETUP_MINI_UBOOT_SRC_SH	= $(SCRIPTS_DIR)/SetupMiniUbootSrcEnv.sh
export GET_SLV_SRC_DEV  		= $(SCRIPTS_DIR)/GetSlaveSrcForDev.sh
export GET_SRC_RVER_SH			= $(SCRIPTS_DIR)/GetSrcRevision.sh
export SMALL_FLASH_MK			= $(SCRIPTS_DIR)/SmallSizeFlash.mk
export Full_FLASH_MK			= $(SCRIPTS_DIR)/FullSizeFlash.mk
export SINGLE_NAND_FLASH_MK		= $(SCRIPTS_DIR)/SingleNandFlash.mk
export SINGLE_NOR_FLASH_MK		= $(SCRIPTS_DIR)/SingleNorFlash.mk
export CLEAN_DIR_MK				= $(SCRIPTS_DIR)/CleanDir.mk
export SPLINT_MK				= $(SCRIPTS_DIR)/Splint.mk
export WEB_JS_COMPRESS_SH		= $(SCRIPTS_DIR)/WebJsCompress.sh

export SPLINT_TARGET		= splint

# Slave chip image names
export SLAVE_KERNEL			= uImage
export SLAVE_UBOOT			= uboot.bin
export SLAVE_ROOT_FS_IMG	= cramfs.initrd.img
export SLAVE_ROOT_FS_CRAMFS	= slave_root.cramfs

# Gui language packing related path
export GUI_LANG_TAR_NAME	= lang.tar.gz
export GUI_LANG_TAR			= $(OUTPUT_CFG_LOGO)/$(GUI_LANG_TAR_NAME)
export GUI_LANG_MERGED		= $(OUTPUT_DIR)/gui_merged/
export GUI_LANG_SPLITED		= $(OUTPUT_DIR)/gui_splited/

# vim:noet:sw=4:ts=4
